package com.huihui.widget.dialog;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.huihui.R;

/**
 * Created by yinsxi on 2018/8/26.
 */

public class ReplyOrCopyDialog extends BaseDialog {

    private TextView replyView, copyView,comment_id;

    public ReplyOrCopyDialog(Context context) {
        super(context);
        initView();
    }

    private void initView() {
        View view = LayoutInflater.from(getContext()).inflate(R.layout.reply_or_copy_dialog, null);
        replyView = view.findViewById(R.id.reply_id);
        copyView = view.findViewById(R.id.copy_id);
        comment_id = view.findViewById(R.id.comment_id);
        addView(view);
    }

    private View.OnClickListener listener;

    public void addClickListener(View.OnClickListener l) {
        this.listener = l;
        setOnClickListener();
    }

    private void setOnClickListener() {
        replyView.setOnClickListener(listener);
        copyView.setOnClickListener(listener);
        comment_id.setOnClickListener(listener);
    }

}
